<template>
  <div>
    阀门============{{ ComInfoData }}/////////////{{ datainfo.sttp }}
    <p>{{ JSON.parse(ComInfoData).sttp }}</p>
    <div>
      <span>实时数据</span>
      <span>历史数据</span>
      <span>测站详情</span>
      <span>视频一路</span>
      <span>视频二路</span>
    </div>
    <div>{{ typeshow }}</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      datainfo: {},
    };
  },
  props: {
    ComInfoData: {
      type: String,
      default: () => "",
    },
  },
  watch: {
    ComInfoData(newval, oldval) {
      console.log(newval);
      let data = JSON.parse(newval);
      this.datainfo = data;
      //   console.log(data,"ComInfoData")
    },
  },
  computed: {
    typeshow() {
      return this.datainfo.sttp;
    },
  },
};
</script>

<style></style>
